package com.pds.web.testOrganizationInfo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.pds.web.testOrganizationInfo.util.ExcelSelected;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
@ApiModel(value = "机构人员模板", description = "机构人员模板")
public class OrganizationPersonTemplate {

    /** 人员名称 */
    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "姓名（*）",index = 0)
    @ColumnWidth(15)
    private String personName;

    /** 性别 */
    @ApiModelProperty(value = "性别")
    @ExcelProperty(value = "性别",index = 1)
    @ColumnWidth(10)
    @ExcelSelected(sourceClass = PersonSexSelectImpl.class)
    private String sex;

    /** 年龄 */
    @ApiModelProperty(value = "年龄")
    @ExcelProperty(value = "年龄",index = 2)
    @ColumnWidth(10)
    private Integer age;

    /** 人员编码 */
    @ApiModelProperty(value = "人员编码")
    @ExcelProperty(value = "人员编码",index = 3)
    @ColumnWidth(15)
    private String personCode;

    /** 人员类别 */
    @ApiModelProperty(value = "人员类别")
    @ExcelProperty(value = "人员类别",index = 4)
    @ColumnWidth(20)
    @ExcelSelected(sourceClass = PersonCategorySelectImpl.class)
    private String personCategory;

    /** 职称 */
    @ApiModelProperty(value = "人员职称")
    @ExcelProperty(value = "人员职称",index = 5)
    @ColumnWidth(18)
    @ExcelSelected(sourceClass = PersonTitleSelectImpl.class)
    private String personTitle;

    /** 手机号 */
    @ApiModelProperty(value = "手机号")
    @ExcelProperty(value = "手机号",index = 6)
    @ColumnWidth(15)
    private String phone;

    /** 邮箱 */
    @ApiModelProperty(value = "邮箱")
    @ExcelProperty(value = "邮箱",index = 7)
    @ColumnWidth(20)
    private String email;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注",index = 8)
    @ColumnWidth(20)
    private String remark;
}
